package com.wang.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wang.mapper.AddManualSetDataMapper;
import com.wang.pojo.AddManualSetData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class AddManualSetDataServiceImpl extends ServiceImpl<AddManualSetDataMapper,AddManualSetData> implements AddManualSetDataService {

    @Autowired
    private AddManualSetDataMapper addManualSetDataMapper;

    @Override
    public AddManualSetData selectBySetId(Integer setId) {
        return addManualSetDataMapper.selectOne(new LambdaQueryWrapper<AddManualSetData>().eq(AddManualSetData::getSetId,setId));
    }
}
